<?php

use Illuminate\Database\Seeder;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        $data = [];
        for($i = 0; $i < 100; $i ++)
        {
        	$temp['username'] = str_random(10);
        	$temp['password'] = Crypt::encrypt('123');
        	$temp['email'] = str_random(5)."@qq.com";
        	$temp['token'] = str_random(50);
        	$temp['status'] = 1;
        	$data[]  = $temp;
         }
        DB::table('users') -> insert($data);
    }
}
